package com.rayboo.example.design.pattern.command;

public class BuyOrder implements Order {

    private Stock mStock;

    public BuyOrder(Stock stock) {
        mStock = stock;
    }

    @Override
    public void execute() {
        System.out.println("Buy stock: name = " + mStock.getName()
                + ", quantity = " + mStock.getQuantity());
    }
}
